package com.yzf.demo.demo.GenericParadigm;

/**
 * Created by 于占峰 on 2020/3/27/027.
 */
public class DemoInterFaceBean1 implements DemoInterface<Double> {
    @Override
    public Double add(Double val, Double val2) {
        return val + val2;
    }

    @Override
    public Double sub(Double val, Double val2) {
        return val - val2;
    }

    @Override
    public Double mul(Double val, Double val2) {
        return val * val2;
    }

    @Override
    public Double div(Double val, Double val2) {
        return val / val2;
    }
}
